package com.zhangdi.dwperms.commons.security;

import org.apache.shiro.codec.Hex;

public class Encoder {
    public static byte[] decode(String str) {
        return Hex.decode(str);
    }

    public static String encode(byte[] bytes) {
        return Hex.encodeToString(bytes);
    }
}
